<template>
  <div>
      <table>
          <tr>
              <td>
                  <input v-model.number="obj.count" type="number">
              </td>
              <td>
                  <span>{{obj.goodsName}}</span>
              </td>
              <td>
                  <span v-show="obj.count===0" class="k">卖光了！！！</span>
              </td>
          </tr>
      </table>
  </div>
</template>

<script>
export default {
    //父->子
    props:["obj"]
}
</script>

<style>
    .k{
        color: #F00;
    }
</style>